﻿using System;

namespace SpLocalizer.Common.Extensions
{
    public static class StringExtensions
    {
        public static string FormatWith(this string format, params object[] values)
        {
            if (format == null)
                throw new ArgumentNullException("format");
            return string.Format(format, values);
        }

        public static bool IsNullOrEmpty(this string value)
        {
            return string.IsNullOrEmpty(value);
        }
    }
}